package com.ctsi.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctsi.core.database.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 系统组织机构表实体类
 *
 * @version 1.0
 * @author: wang xiao xiang
 * @date: 2021/8/9 16:31
 */
@Data
@TableName("mars_sys_org")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Org对象", description = "系统组织机构表")
@JsonIgnoreProperties(ignoreUnknown = true)
public class Org extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 父id
     */
    @ApiModelProperty(value = "父id")
    private Long pid;
    /**
     * 父ids
     */
    @ApiModelProperty(value = "父ids")
    private String hierarchy;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 编码
     */
    @ApiModelProperty(value = "编码")
    private String code;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String remark;
    /**
     * 状态（字典 0正常 1停用 2删除）
     */
    @ApiModelProperty(value = "状态（字典 0正常 1停用 2删除）")
    private Integer status;
    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;
    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
